﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="CleanEstablishmentEntry.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.CodeSetup.CleanEstablishmentEntry" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />

    <script language="JavaScript" type="text/javascript" src="../../Javascript/CommonFunction.js"></script>
<script language="javascript" type="text/javascript">
function CheckData(SOM_CleanShift,SOM_CleanLocation,SOM_CleanStart,SOM_CleanEnd,SOM_CleanEstablishment)
{
    if(document.getElementById("ddlShift").selectedIndex==0)
    {
        alert(SOM_CleanShift);
        document.getElementById("ddlShift").focus();
        return false;
    }
    else if(document.getElementById("ddlLocation").selectedIndex==0)
    {
        alert(SOM_CleanLocation);
        document.getElementById("ddlLocation").focus();
        return false;
    }
    else if(trim(document.getElementById("dtbEffectiveFrom$dateTextBox").value)=="")
    {
        alert(SOM_CleanStart);
        document.getElementById("dtbEffectiveFrom$dateTextBox").focus();
        return false;
    }
    else if(trim(document.getElementById("dtbEffectiveTo$dateTextBox").value)=="")
    {
        alert(SOM_CleanEnd);
        document.getElementById("dtbEffectiveTo$dateTextBox").focus();
        return false;
    }
    else if(trim(document.getElementById("txtEstablishment").value)=="")
    {
        alert(SOM_CleanEstablishment);
        document.getElementById("txtEstablishment").focus();
        return false;
    }
    return true;
}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140912" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">
                                <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140810" ParentMenuID="M140912" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <!--**********context Begin *****************-->
                                <fieldset style="width: 100%">
                                    <legend class="Title1">
                                        <asp:Label ID="lblTitle" runat="server" Text="CategoryEntry"></asp:Label></legend>
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label ID="lblShift" runat="server" Text="Shift"></asp:Label><span style="color: #000000"><em>*</em></span>
                                            </td>
                                            <td style="width: 150px">
                                                <asp:DropDownList ID="ddlShift" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 150px">
                                                <asp:Label runat="server" ID="lblLocation" Text="Location"></asp:Label><em>*</em></td>
                                            <td style="width: 150px">
                                                <asp:DropDownList runat="server" ID="ddlLocation">
                                                </asp:DropDownList></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label ID="lblEffectiveFrom" runat="server" Text="Effective From"></asp:Label><em>*</em>
                                            </td>
                                            <td style="width: 150px">
                                                <APJ:DateTextBox ID="dtbEffectiveFrom" runat="server" />
                                            </td>
                                            <td style="width: 150px">
                                                <asp:Label runat="server" ID="lblEffectiveTo" Text="Effective To"></asp:Label><em>*</em>
                                            </td>
                                            <td style="width: 150px">
                                                <APJ:DateTextBox ID="dtbEffectiveTo" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label runat="server" ID="lblEstablishment" Text="Establishment"></asp:Label><em>*</em>
                                            </td>
                                            <td colspan="3">
                                                <asp:TextBox runat="server" ID="txtEstablishment" MaxLength="5" onkeyup="value=value.replace(/[^\d{5}\.\d{2}]/g,'');"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Label runat="server" ID="lblVoid" Text="Void"></asp:Label>
                                            </td>
                                            <td colspan="3">
                                                <asp:CheckBox runat="server" ID="chVoid" AutoPostBack="True" OnCheckedChanged="chVoid_CheckedChanged" /></td>
                                        </tr>
                                        
                                    </table>
                                    <table width="100%">
                                    <tr>
                                            <td colspan="4">
                                                <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" />
                                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                                <asp:Button ID="btnSaveReturn" runat="server" Text="Save And Return" OnClick="btnSaveReturn_Click" />
                                                <asp:Button ID="btnSaveNew" runat="server" Text="Save And New" OnClick="btnSaveNew_Click" />
                                                <asp:Button ID="btnCancel" runat="server" Text = "Cancel" OnClick="btnCancel_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:TextBox ID="txtSession" runat="server" Visible="False"></asp:TextBox></fieldset>
                                <!--**********context End *****************-->
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 54px">
                                <WebStructure:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
